/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fiesta;
import java.util.Scanner;

/**
 *
 * @author Administrador
 */
public class Fiesta {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner escan=new Scanner(System.in);
        int c=0;
        String nombres[]= {"Lourdes", "Cesar", "William", "Paola", "Aydee", "Marisol", "Cristian", "Andres", "Julieth", "Nefris"};
        do{
            System.out.print("Ingresa tu nombre: ");
            String n=escan.next();
            for(int i=0; i<10; i++){
                if(n.equalsIgnoreCase(nombres[i])){
                    System.out.println("Bienvenid@ a la fiesta");
                    c=c+1;
                    i=10;
                }
                if(i==9){
                    System.out.println("Lo siento, no estás invitad@ a esta fiesta.");
                }
            }    
        }while(c<10);
    }
}
